package store

import (
	"auth/model"
	"auth/model/entity"
)

type IUserAuthority interface {
	Create(e *entity.UserAuthority) (int64, error)
	List(in *model.UserAuthorityListRequest) (int, []*entity.UserAuthority, error)
	SetUserAuthorities(userId int64, authorityIds []int64) error
	FindByUserId(userId int64) ([]*entity.UserAuthority, error)
	FindByAuthorityId(authorityId int64) ([]*entity.UserAuthority, error)
	DeleteByAuthorityId(authorityId int64) error
	DeleteByUserId(userId int64) error
}
